<?php

namespace app\admin\controller;

class Log_operation
{
    /**
     * 日志操作
     * @return mixed
     */
    public function index()
    {
        $paramsObj = paramsObj();
        $paramsObj->params = array(
            "format" => 1,
        );
        $response = app("C_Admin_log_operation")->listData($paramsObj);
        $listData = array();
        if ($response["success"]) {
            $listData = $response["data"];
        }
        $data = array();
        $data["listData"] = $listData;
        $data["request"] = request()->param();
        return view("admin/log_operation/index", $data);
    }

    /**
     * 删除
     */
    public function delete()
    {
        $result = app("C_Admin_log_operation")->delete();
        return jsonResponse($result);
    }
}